export default {
	getFavStatus(store, json){
		return new Promise((resolve, reject) =>{
			store.dispatch('requestData', {
				path:"/fav",
				data:json
			}).then(res =>{
				resolve(res)
			}).catch(err => {
				reject(err)
			})
		})
	},
	addFav(store, json){
		return new Promise((resolve, reject) => {
			store.dispatch('requestData', {
				path:"/fav/add",
				data:json
			}).then(res => {
				resolve(res)
			}).catch(err => {
				reject(err)
			})
		})
	},
	deleteFav(store, json){
		return new Promise((resolve, reject) => {
			store.dispatch('requestData', {
				path:"/fav/delete",
				data:json
			}).then(res => {
				resolve(res)
			}).catch(err => {
				reject(err)
			})
		})
	}
}